//*********************************************
//ADRIAN SALAZAR && JUSTIN MICHALE SCHWARTZBECK
//HOMEWORK 2
//FEB. 23, 2012
//
//packet.h 	Header file for the packet class
//*********************************************
#include <inttypes.h>
#include <stdlib.h>
#include "lspmessage.pb.h"

#ifndef _PACKET_
#define _PACKET_
class Packet {
public:
	uint32_t len;
	uint8_t * data;
	LSPMessage msg;
	Packet(uint32_t id, uint32_t seq, const uint8_t* payload, size_t length);
	Packet(const uint8_t* buf, size_t bytes);
	uint32_t get_conn_id();
	uint32_t get_seq_num();
	const uint8_t * get_payload();
};
#endif
